<template>
  <view class="letterNav">
   <view  class="ln-item" v-for="(item,index) in letterList" :key="index" :id="item" @click="onLetterNav(item,index)">
     {{item}}
   </view>
  </view>
</template>

<script>
  export default {
    props:{
      letterList:Array
    },
    data() {
      return {
        
      }
    },
    onLoad() {
      // console.log(this.letterList)
    },
    created(){
      // console.log(this.letterList.length)
    },
    methods: {
      onLetterNav(item,index){
        // console.log(item,index)
        this.$emit('letterNav',item)
      }
    }
  }
</script>

<style lang="less" scoped>
  .letterNav{
    position: fixed;
    right: 0;
    top: 58%;
    transform: translate(0,-50%);
    .ln-item{
      padding: 3upx;
    }
  }
</style>
